<?php

// phpMyRealty 3
//
// File Name: template.php
// File Location : ./includes/functions/
//
// Copyright (c)2009 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

class Template 

{

 var $template;

	function load ( $file )

	{
		$this->template = $file;
	}

	function set ( $var, $content ) 

	{
		$this->template = str_replace ( '{' . $var . '}', $content, $this->template );
	}

	function publish ( ) 

	{

 		echo $this->template;

	}

}

?>